<!doctype html>
<html xmlns:wb="http://open.weibo.com/wb">
<head>
<meta charset="utf-8">
<title>layer API 帮助文档</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title>演示流程</title>
	<script src="../plug/jquery-1.8.2.min.js"></script>
	<script src="../plug/layer/layer.js"></script>
	<script src="../plug/support.js"></script>

	<script src="../plug/qn_jssdk/plupload/plupload.full.min.js"></script>
	<script src="../plug/qn_jssdk/qiniu.dev.js"></script>
	
	
	<!-- 演示JSSDK的功能 -->
	<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
	<script src="/jsp/weixin/js_sdk.jsp"></script>	
</head>
<body>

	<button type="button" class="btn btn-success img1">（链接）Link</button>
	<img alt="" id="testimg" src="">
	<script type="text/javascript">
	$(function(){
	
	/* 	gx.confirm("恻然是事实上事实上",function(){
			alert(1)
		}) */
		
		imgupload({
			elm : ".img1",		// 标签，类名或 ID 不能重复
			thumb_w : 500,		// 返回缩略图的宽度
			thumb_h : 250,		// 返回缩略图的高度
			multi : true,		// 上传多张
			fsize : 50,			// 图片大小限制（MB），默认 100MB
			rery : 3,			// 上传失败重试次数，默认 1
			multi : true,		// 上传多张
			UploadProgress : function(up,file){ },		// up：对象实例，file：文件上传信息
			FileUploaded : function(img,thumb){ 
				$("#testimg").attr({"src":thumb}); 
				}	// img：图片原图，thumb：缩略图
		});
		
	})         
	</script>
</body>
</html>